package JLB_Chapter_09;

public class code_09_05 {
    public static void main(String[] args){
        Character mychar1 = new Character('A');
        Character mychar2 = new Character('a');
        if(Character.isUpperCase(mychar1)) {
            System.out.println(mychar1 + "是大写字母");
            System.out.println("转换为小写字母的结果：" + Character.toLowerCase(mychar1));
        }
        if(Character.isLowerCase(mychar2)) {
            System.out.println(mychar2 + "是小写字母");
            System.out.println("转换为大写字母的结果：" + Character.toUpperCase(mychar2));
        }
    }
}
